package com.vdong.common.oauth.entity.mo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author llh
 * Created on 2018/06/14.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(name = "user_main")
@ApiModel("用户主表")
public class AppUserMainMO implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private Long storeId;
    @ApiModelProperty("创建时间")
    private Date createDate;
    @ApiModelProperty("账号角色；1：店铺管理员；2：讲师；3：读者")
    private Byte roleId;
    @ApiModelProperty("头像地址")
    private String headUrl;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("用户编号")
    private String code;
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("微信openid")
    private String wxOpenid;
    /**
     * // 微信unionid
     */
    private String wxUnionid;
    @ApiModelProperty("用户账号")
    private String username;
}
